package github.aloofcoder.gulimall.product.feign;

import github.aloofcoder.common.utils.R;
import github.aloofcoder.gulimall.product.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author hanle
 * @date 2020/12/12 14:32
 * 编程千万条, 规范第一条, 注释不规范, 接盘泪两行!
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
